<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
      <h4>Products</h4>
      <ul id="productList">
        <c:forEach var="product" items="${productList}">
        <li class="product" id="product_${product.id}">
          <a href="<c:url value="/productModify.do">
  					<c:param name="productId" value="${product.id}"/>
					</c:url>"><span class="name"><c:out value="${product.name}" /></span>
		  </a>
          <c:if test="${not product.active}">
            <a href="<c:url value="/activateProduct.do">
  					<c:param name="productId" value="${product.id}"/>
					</c:url>">Activate</a>
          </c:if>
          <c:if test="${product.active}">
            <a href="<c:url value="/deactivateProduct.do">
  					<c:param name="productId" value="${product.id}"/>
					</c:url>">Deactivate</a>
          </c:if>
        </li>
        </c:forEach>
      </ul>
      
      <form:form commandName="newProduct">
        Name: <form:input path="name" /><input type="submit" value="Create Product" />
      </form:form>